package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.PtTurntablePrizeStoreEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;

/**
 * 大转盘奖品库存表模型类
 * 
 * @author pbuilder generated
 * @date 2022-08-12 16:10:33
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class PtTurntablePrizeStore extends PtTurntablePrizeStoreEntity {

	/**
	 * 构造一个空大转盘奖品库存表模型对象
	 */
	public PtTurntablePrizeStore(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个大转盘奖品库存表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public PtTurntablePrizeStore(PtTurntablePrizeStoreEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个大转盘奖品库存表模型对象
	 * 
	 * @param other 其它对象
	 */
	public PtTurntablePrizeStore(PtTurntablePrizeStore other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置id
	 * 
	 * @param id id
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getPointTurntableId() {
    	return pointTurntableId;
    }

    /**
	 * 设置大转盘ID
	 * 
	 * @param pointTurntableId 大转盘ID
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore pointTurntableId(String pointTurntableId) {
    	this.pointTurntableId = pointTurntableId;
    	return this;
    }

	@Override
	public String getPrizeId() {
    	return prizeId;
    }

    /**
	 * 设置奖品ID
	 * 
	 * @param prizeId 奖品ID
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore prizeId(String prizeId) {
    	this.prizeId = prizeId;
    	return this;
    }

	@Override
	public String getGoodsId() {
    	return goodsId;
    }

    /**
	 * 设置商品id
	 * 
	 * @param goodsId 商品id
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore goodsId(String goodsId) {
    	this.goodsId = goodsId;
    	return this;
    }

	@Override
	public Integer getStoreCount() {
    	return storeCount;
    }

    /**
	 * 设置奖品库存数量
	 * 
	 * @param storeCount 奖品库存数量
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore storeCount(Integer storeCount) {
    	this.storeCount = storeCount;
    	return this;
    }

	@Override
	public Integer getCurrentCount() {
    	return currentCount;
    }

    /**
	 * 设置现有库存数量
	 * 
	 * @param currentCount 现有库存数量
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore currentCount(Integer currentCount) {
    	this.currentCount = currentCount;
    	return this;
    }

	@Override
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }

    /**
	 * 设置获取时间/创建时间
	 * 
	 * @param createdTime 获取时间/创建时间
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore createdTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    	return this;
    }

	@Override
	public String getCreatedBy() {
    	return createdBy;
    }

    /**
	 * 设置
	 * 
	 * @param createdBy 
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore createdBy(String createdBy) {
    	this.createdBy = createdBy;
    	return this;
    }

	@Override
	public LocalDateTime getModifiedTime() {
    	return modifiedTime;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedTime 
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore modifiedTime(LocalDateTime modifiedTime) {
    	this.modifiedTime = modifiedTime;
    	return this;
    }

	@Override
	public String getModifiedBy() {
    	return modifiedBy;
    }

    /**
	 * 设置
	 * 
	 * @param modifiedBy 
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore modifiedBy(String modifiedBy) {
    	this.modifiedBy = modifiedBy;
    	return this;
    }

	@Override
	public Boolean getDel() {
    	return del;
    }

    /**
	 * 设置删除 0-未删除；1-已删除
	 * 
	 * @param del 删除 0-未删除；1-已删除
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore del(Boolean del) {
    	this.del = del;
    	return this;
    }

	@Override
	public LocalDateTime getDelTime() {
    	return delTime;
    }

    /**
	 * 设置
	 * 
	 * @param delTime 
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore delTime(LocalDateTime delTime) {
    	this.delTime = delTime;
    	return this;
    }

	@Override
	public String getDelBy() {
    	return delBy;
    }

    /**
	 * 设置
	 * 
	 * @param delBy 
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore delBy(String delBy) {
    	this.delBy = delBy;
    	return this;
    }

	@Override
	public Integer getVersion() {
    	return version;
    }

    /**
	 * 设置版本号 修改库存的时候用到
	 * 
	 * @param version 版本号 修改库存的时候用到
	 * @return 当前对象
	 */
    public PtTurntablePrizeStore version(Integer version) {
    	this.version = version;
    	return this;
    }

}
